<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		body{
			background: #F1F1F1 url() 0 0 no-repeat;
		}
		*{
			margin: 0px;
			padding: 0px;
		}
		li{
			list-style: none;
			float: left;
		}
		ul{
			margin:100px 100px;
			float: left;
		}
		.clear{
			clear: both;
		}

	</style>
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	<script>
		$(function(){
			function run() {
				now =new Date();
				hours = now.getHours();
				minute = now.getMinutes();
				seconds = now.getSeconds();

				str = ""+chanche_str(hours)+chanche_str(minute)+chanche_str(seconds);

				for (var i = 0; i<str.length; i++) {

					$('.num').eq(i).find('img').attr('src','./'+str[i]+'.png');
				}
			}

			setInterval(run,1000);
		})

		function chanche_str(num) {
			if(num<10){
				return '0'+num;
			}else{
				return num;
			}
		}
	</script>
</head>
<body>
	<ul class="box">
		<li class="num">
			<img src="./0.png" alt="">
		</li>
		<li class="num">
			<img src="./0.png" alt="">
		</li>
		<li>
			<img src="./dian.png" alt="">
		</li>
		<li class="num">
			<img src="./0.png" alt="">
		</li>
		<li class="num">
			<img src="./0.png" alt="">
		</li>
		<li>
			<img src="./dian.png" alt="">
		</li>
		<li class="num">
			<img src="./0.png" alt="">
		</li>
		<li class="num">
			<img src="./0.png" alt="">
		</li>
		<div class="clear"></div> 
	</ul>
</body>
</html>